package com.itcm.skymail.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itcm.common.utils.PageUtils;
import com.itcm.skymail.product.entity.AttrAttrgroupRelationEntity;
import com.itcm.skymail.product.entity.AttrEntity;
import com.itcm.skymail.product.entity.AttrGroupEntity;
import com.itcm.skymail.product.vo.AttrGroupWithAttrVo;
import com.itcm.skymail.product.vo.SpuItemBaseAttrVo;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author cm_fighting
 * @email cmtianxie@163.com
 * @date 2020-08-27 14:20:36
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params, Long catelogId);

    List<AttrEntity> getRelationListByGroupId(Long attrgroupId);

    void removeCasByIds(List<Long> ids);

    void deleteRalation(List<AttrAttrgroupRelationEntity> relationEntities);

    PageUtils queryNoRelationPage(Map<String, Object> params, Long attrgroupId);

    void batchSaveRelation(List<AttrAttrgroupRelationEntity> relationEntities);

    List<AttrGroupWithAttrVo> getGroupsWithAttrByCatId(Long catelogId);

    List<SpuItemBaseAttrVo> getBaseAttrsWithGroup(Long spuId, Long catalogId);
}

